package com.csii.mobilebanking.tool;

import com.csii.mobilebanking.user.SharedPre;
import com.csii.mobilebanking.user.XGUserAccount;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;

public class HpGlobals
{
	public static int AppID = 101;
	public static String AppName="号外彩票";
	public static int AppVer = 1700;
	public static String AppVerName = "1.5.00";
	public static String ApkName = "haowaikaijiang.apk";
	public static String ApkTag = "100";
	public static XGUserAccount mXGUserAccount = null;
    public static String DeviceID="";
    final  public static String alipayID="05";	//支付宝充值渠道号
	
	public static void init(Context context)
	{
		ApplicationInfo applicationinfo = context.getApplicationInfo();
		try {
			//version
			AppVer = context.getPackageManager().getPackageInfo(applicationinfo.packageName, PackageManager.GET_CONFIGURATIONS ).versionCode;
			AppVerName = context.getPackageManager().getPackageInfo(applicationinfo.packageName, PackageManager.GET_CONFIGURATIONS ).versionName; 
			//preferences
			//Lotto init
//			HpLotto.init();
		} catch (NameNotFoundException e) {
			e.printStackTrace();
		}
	}
}
